<?php

require_once 'config.php';     
require_once(ABSPATH.'inc/functions.php');
/*if (!LOCAL_DEV){
require_once(ABSPATH.'inc/facebook.php');
}else{
    $fb_user= 1333154076;
    $fb_user_name = "Michael Bloggs";
   
}
*/
require_once('app_start.php');

require_once('edf_lib.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Edf Energy Reporting</title>

<link rel="stylesheet" href="css/reset.css" type="text/css" media="screen" />
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" />
<link rel="stylesheet" href="css/edf.css" type="text/css" />

<!--[if IE 6]>
<link rel="stylesheet" href="css/ie6.css" type="text/css" media="screen, print" />
<script type="text/javascript" src="js/unitpngfix.js"></script>
<![endif]-->

<!--[if IE 7]>
<link rel="stylesheet" href="css/ie7.css" type="text/css" media="screen, print" />
<![endif]-->

<link rel="stylesheet" type="text/css" href="css/colorbox.css" media="all" /> 
    
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="js/edf.js"></script>
<script type="text/javascript" src="js/jquery.colorbox.js"></script>    
<script type="text/javascript" src="js/jquery-effects.js"></script>
    
<?php

require_once('inc/css.php');

?>    
</head>

<body>

<? //require_once 'tab_html2.php';?>
<div id="wrapper">
<div id="wrapperInner">
<? if (!isset($pageName)) {$pageName="wbm_page" ;}?>
<div id="topBlock" <? if (isset($pageName) && $pageName!='index') echo ' style="background:none;"'?>>
<a href="index.php"><img src="images/logo.jpg" alt="Edf Energy" id="logo" class="floatRight" /></a>

<div id="login" class="actionlinks">


<?php
     if(empty($_SESSION['myusername'])){
echo '<a href="index.php">Log in!</a>';         
     }else{
echo '<a href="login.php?lAct=logout">log out</a>';                  
     }
?>
</div> 

</div>    <!-- end #topBlock -->    